import request from '@/utils/request'

// 查询MAC地址验证列表
export function listMacRole(query) {
  return request({
    url: '/worksite/macRole/list',
    method: 'get',
    params: query
  })
}

// 查询MAC地址验证详细
export function getMacRole(id) {
  return request({
    url: '/worksite/macRole/' + id,
    method: 'get'
  })
}

// 新增MAC地址验证
export function addMacRole(data) {
  return request({
    url: '/worksite/macRole',
    method: 'post',
    data: data
  })
}

// 修改MAC地址验证
export function updateMacRole(data) {
  return request({
    url: '/worksite/macRole',
    method: 'put',
    data: data
  })
}

// 删除MAC地址验证
export function delMacRole(id) {
  return request({
    url: '/worksite/macRole/' + id,
    method: 'delete'
  })
}
